<template>
  <div class="infoshow">
    <div class="left"> 
        <img src="../../assets/images/logo.png" alt="" />
    </div>
    <div class="right">
      <div class="userItem1">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-yonghu-xianxing"></use>
        </svg>
        <span>{{ user.name }}</span>
      </div>
      <div class="userItem1">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-shezhi"></use>
        </svg>
        <span>{{ user.identify }}</span>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useStore } from "vuex";
import { computed } from "vue";
const store = useStore();
const user = computed(() => {
  return store.getters.user;
});
</script>

<style lang="less" scoped>
.infoshow {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin-left: 200px;
  display: flex;
  .left {
    width:400px;
    text-align: center;
    top: 30%;
    position: relative;
      img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
      }
  }
  .right {
    .userItem1 {
      svg {
        width: 30px;
        height: 30px;
      }
    }
    .userItem2 {
    }
  }
}
</style>
